package com.lwb.eduservice.client;

import com.lwb.commonutils.UcenterMemberVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "service-ucenter", fallback = UcenterMemberFileDegradeFeignClient.class)
@Component
public interface UcenterMemberClient {

    //根据token值获取用户信息
    @GetMapping("/educenter/ucenter-member/getUserInfo/{id}")
    public UcenterMemberVo getUserInfo(@PathVariable("id") String id);
}
